package stud.mpgame.flash.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.flash.net.command.ReadyToGameCommand;

/**
 * ...
 * @author pavel[f.pavel91@gmail.com]
 */

class ReadyToGameMessageDescription extends MessageDescription {
    
	private static var ID = IDescriptionManager.READY_TO_GAME_MESSAGE_DESCRIPTION;
	
	private static var READY_TO_GAME_USER_OBJECT_ID:Int = 1; //ReadyToGameCommand.hx
	
	private static var instance:ReadyToGameMessageDescription = null;	
	
	public override function getID():Int {
        return ID;
    }

 	public function new() {
		super();
        this.registerUserObject(READY_TO_GAME_USER_OBJECT_ID, ReadyToGameCommand);
	}
    
	public static function getInstance():ReadyToGameMessageDescription {
        if(instance == null){
            instance = new ReadyToGameMessageDescription();
        }
        return instance;
    }
	
}